<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .parent {
            position: relative;
        }
        #box1 {
            position: absolute;
            top: 0;
            left: 0;
            width: 300px;
            height: 300px;
            background-color: aquamarine;
        }
        #box2 {
            width: 100%;
            height: 400px;
            background-color: antiquewhite;
        }
    </style>
</head>
<body>
    <div class="parent">
        <div id="box1"></div>
        <div id="box2"></div>
    </div>
    <script>
        let box1 = document.getElementById('box1');
        let box2 = document.getElementById('box2');
        box1.addEventListener('touchstart', function() {
            console.log('box1 touchstart');
            box1.style.display = 'none';
        });

        box2.addEventListener('touchstart', function() {
            console.log('box2 touchstart')
        });

        box2.addEventListener('click', function() {
            console.log('box2 click')
        })
    </script>
</body>
</html>